package common;


/**
 * @author Or Kaplan
 * simple console logger - just print the messages to the sysout
 */
public class ConsoleLogger implements ILogger {
	/* (non-Javadoc)
	 * @see common.ILogger#Log(java.lang.String)
	 */
	@Override
	public void Log(String message) {
		System.out.println(message);
	}
	
	/* (non-Javadoc)
	 * @see common.ILogger#LogException(java.lang.String, java.lang.Exception)
	 */
	@Override
	public void LogException(String message, Exception e)
	{
		Log(message);
		Log(e.getMessage());
	}

	/* (non-Javadoc)
	 * @see common.ILogger#LogWarning(java.lang.String)
	 */
	@Override
	public void LogWarning(String message) {
		Log("WARNING\t" + message);
		
	}
}
